﻿using Core.DataAccess.Model.Project.Order;
using Core.Framework.Model.Common;

namespace Core.IBusiness.IOrderModule
{
    /// <summary>
    /// 优惠卷
    /// </summary>
    public interface IOrderCoupon
    {
        /// <summary>
        /// 订单优惠卷操作
        /// </summary>
        /// <param name="model"></param>
        /// <param name="sqlExecType"></param>
        /// <returns></returns>
        MethodResult<int> OrderCouponExec(OrderCoupon model, SqlExecType sqlExecType);

        /// <summary>
        /// 获取优惠卷信息，根据Code
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        MethodResult<OrderCoupon> GetOrderCouponByCode(string code);
    }
}
